Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iam_role_info - fix bug in prefix_path handling of missing /s #2066

Merged

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Apr 29, 2024

SUMMARY

fixes: #2065

When updating the code in iam_role_info to handle missing / at the start/end of prefix_path, the string as finally built should be an f-string not a simple string/

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

iam_role_info

ADDITIONAL INFORMATION

Thanks to vonschultz for catching this one.

@tremble tremble marked this pull request as ready for review April 29, 2024 07:37
@tremble tremble added the backport-7 PR should be backported to the stable-7 branch label Apr 29, 2024
@tremble tremble added this to the 7.6.0 milestone Apr 29, 2024
@tremble tremble requested a review from alinabuzachis April 29, 2024 07:37
@tremble tremble mentioned this pull request Apr 29, 2024
@tremble
Copy link
Contributor Author

tremble commented Apr 29, 2024

@vonschultz many thanks for catching this and tracking down the cause, I'm guessing 7.5.0 caused something to break for you for which I apologise.

In future, if the original PR has already been merged it's a better idea to open a new issue, rather than review a merged PR. It's very easy to miss comments on an old merged PR, if I happened to have marked the notification email as read your review would be almost impossible to spot.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/3db7c72e7795477c8393532ea9fe9a4e

✔️ ansible-galaxy-importer SUCCESS in 5m 29s
✔️ build-ansible-collection SUCCESS in 15m 44s
✔️ ansible-test-splitter SUCCESS in 5m 27s
✔️ integration-amazon.aws-1 SUCCESS in 5m 14s
Skipped 43 jobs

@tremble tremble requested a review from abikouo April 30, 2024 09:37
@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Apr 30, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/ece121bbf91f4b31956abf107e3d985f

✔️ ansible-galaxy-importer SUCCESS in 4m 30s
✔️ build-ansible-collection SUCCESS in 16m 17s
✔️ ansible-test-splitter SUCCESS in 8m 31s
✔️ integration-amazon.aws-1 SUCCESS in 6m 18s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit a92f03a into ansible-collections:main Apr 30, 2024
41 checks passed
Copy link

patchback bot commented Apr 30, 2024

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/a92f03ad14ee3482120d0a21a00d79b7f07d3610/pr-2066

Backported as #2069

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Apr 30, 2024
iam_role_info - fix bug in prefix_path handling of missing /s

SUMMARY
fixes: #2065
When updating the code in iam_role_info to handle missing / at the start/end of prefix_path, the string as finally built should be an f-string not a simple string/
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
iam_role_info
ADDITIONAL INFORMATION
Thanks to vonschultz  for catching this one.

Reviewed-by: Alina Buzachis
(cherry picked from commit a92f03a)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Apr 30, 2024
…2069)

[PR #2066/a92f03ad backport][stable-7] iam_role_info - fix bug in prefix_path handling of missing /s

This is a backport of PR #2066 as merged into main (a92f03a).
SUMMARY
fixes: #2065
When updating the code in iam_role_info to handle missing / at the start/end of prefix_path, the string as finally built should be an f-string not a simple string/
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
iam_role_info
ADDITIONAL INFORMATION
Thanks to vonschultz  for catching this one.

Reviewed-by: Mark Chappell
abraverm pushed a commit to abraverm/amazon.aws that referenced this pull request May 2, 2024
…ollections#2066)

iam_role_info - fix bug in prefix_path handling of missing /s

SUMMARY
fixes: ansible-collections#2065
When updating the code in iam_role_info to handle missing / at the start/end of prefix_path, the string as finally built should be an f-string not a simple string/
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
iam_role_info
ADDITIONAL INFORMATION
Thanks to vonschultz  for catching this one.

Reviewed-by: Alina Buzachis
@tremble tremble deleted the iam/role_prefix branch June 12, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 PR should be backported to the stable-7 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iam_role_info - confusing ValidationError when passed path without / prefix/suffix
2 participants